<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersExperienceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users_experience', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->nullable()->comment('用户');
            $table->string('time_interval')->default('')->comment('培训时间');
            $table->string('subject')->default('')->comment('培训科目');
            $table->timestamp('create_at')->nullable()->comment('创建');
            $table->timestamp('update_at')->nullable()->comment('更新');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users_experience');
    }
}
